#pragma once
#ifndef __G_SINGLEYH__
#define __G_SINGLEYH__
#include "../Define.h"
#include "../Common.h"

class SingleYH
{
public:
    SingleYH();
    ~SingleYH();

    static SingleYH* instance()
    {
        static SingleYH instance;
        return &instance;
    }

    void Run(int32 yysPID, bool SaveImg = false);
    void SetSaveImgPatch(std::string ImgPatch);
    void SetLoadImgPatch(std::string ImgPatch);
private:
    std::string ImgPatch;
    std::string ImgSavePath;
};

#define sSingleYH SingleYH::instance()
#endif
